const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true
})
let proxyObj = {};
proxyObj['/admin/'] = {
  ws: false,
  target: 'https://test.apiphp.huapusi.cn',
  changeOrigin: true,
  pathRewrte: {
    '^/': ''
  }
}
proxyObj['/'] = {
    ws: false,
    target: 'https://mock.apifox.cn/m1/1892360-0-default',
    changeOrigin: true,
    pathRewrte: {
      '^/': ''
    }
}
module.exports = {
    devServer: {
      host: 'localhost',
      port: 8080,
      proxy: proxyObj
    }
}